# -*- coding: utf-8 -*-
#__author__ = '风中的思绪'

from openerp import models, fields, api, _


class SQLTrace(models.Model):
    """ workstation """
    _name = 'sql.trace'
    _description = 'SQL Trace'

    module = fields.Char()
    model = fields.Char()
    statement = fields.Char()
    user_id = fields.Many2one('res.users')
    sql = fields.Text()
    parameters = fields.Text()
    result = fields.Text()
    date_update = fields.Datetime()
    duration = fields.Float()